home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / DebugFlavor.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.7 KB  |  45 lines

  1. package com.extensibility.xml;
  2.  
  3. import java.io.IOException;
  4. import java.io.Writer;
  5.  
  6. public class DebugFlavor extends BaseFlavor {
  7.    public static String NAME = "bug";
  8.  
  9.    public DebugFlavor(SchemaIntf var1) {
  10.       super(var1);
  11.    }
  12.  
  13.    public String getFlavorName() {
  14.       return NAME;
  15.    }
  16.  
  17.    public void write(Writer var1, URI var2) throws IOException {
  18.       (new DebugWriter(super.schema, var2)).writeDocument(var1);
  19.    }
  20.  
  21.    public void parse(URI var1, URI var2, int var3, Object var4) throws IOException {
  22.       throw new RuntimeException("Debug flavor: parse not implemented yet");
  23.    }
  24.  
  25.    public String getSourcePreview(BaseDeclaration var1) {
  26.       return (new DebugWriter(super.schema)).getSourcePreview(var1);
  27.    }
  28.  
  29.    public BaseExemplar createExemplar(SchemaIntf var1) {
  30.       return new DTDExemplar(var1);
  31.    }
  32.  
  33.    public boolean isSupported(Class var1) {
  34.       return true;
  35.    }
  36.  
  37.    public boolean isSupported(String var1) {
  38.       return true;
  39.    }
  40.  
  41.    public void checkForErrors(BaseDeclaration var1) {
  42.       super.checkForErrors(var1);
  43.    }
  44. }
  45.